<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>新建模型 - 模型管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
	function page(n,s){
		if(n) $("#pageNo").val(n);
		if(s) $("#pageSize").val(s);
		$("#searchForm").attr("action","${ctx}/feedback/feedbackAllList");
		$("#searchForm").submit();
    	return false;
    }
	</script> 
	<style type="text/css">
		.getMargin{
				margin:0 auto;
		}
	</style>
</head>
<body>

<form:form id="searchForm" action="" method="post">
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}" callback="page();"/>
</form:form>
	<div class="getMargin">
		<table id="contentTable" class="table table-striped table-bordered table-condensed">
			<thead>
				<th>楼名</th>
				<th>层数</th>
				<th>房号</th>
				<th>用户姓名</th>
				<th>用户联系电话</th>
				<th>标题</th>
				<th>反馈内容</th>
				<th>处理情况</th>
				<th>操作</th>
				
			</thead>
			<c:forEach items="${page.list }" var="a">
				
				<tr>
					<td>${a.building.buildingName }</td>
					<td>${a.room.floor }</td>
					<td>${a.room.roomNum }</td>
					<td>${a.user.name }</td>
					<td>${a.user.mobile }</td>
					<td>${a.title }</td>
					<td>${a.content }</td>
					<if test="${a.isDeal == 1 }">
					<td><font color="red">正在处理</font></td>
					</if>
					
					<td>
					<a  href="${ctx}/feedback/updateFeedback?id=${a.id}" onClick="return confirm('确定该问题已修复?');">已修复</a></td>
				</tr>
			</c:forEach>
		</table>
		<div class="pagination">${page}</div>	
	</div>
	
</body>
</html>
